Gets or sets the value associated with the specified key.
'Declaration
Public Shadows Default Property Item( _
ByVal As _
) As
'Usage
Dim instance As SafeDictionary(Of TKey,TValue)
Dim key As
Dim value As
instance.Item(key) = value
value = instance.Item(key)
public new this[
]; {get; set;}
public this: : ;[
:
]; read-write
public hide this[
:
] get,set :
public: __property new get_Item
;
public: __property new void set_Item ,
;
public:
new property default [TKey^] {
get( );
void set ( , value);
}
Parameters
- key
Property Value
The value associated with the specified key. If the specified key is not found, a get operation throws a
System.Collections.Generic.KeyNotFoundException, and a set operation creates a new element with the specified key.